package com.xwb.pojo;

import java.util.Date;

public class Cartoon {
	Integer cid;
	String cname;
	String cauthor;
	String cintroduction;
	String cimg;
	Date cdate;
	String creview;
	Integer cwant;
	public Integer getCid() {
		return cid;
	}
	public void setCid(Integer cid) {
		this.cid = cid;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public String getCauthor() {
		return cauthor;
	}
	public void setCauthor(String cauthor) {
		this.cauthor = cauthor;
	}
	public String getCintroduction() {
		return cintroduction;
	}
	public void setCintroduction(String cintroduction) {
		this.cintroduction = cintroduction;
	}
	public String getCimg() {
		return cimg;
	}
	public void setCimg(String cimg) {
		this.cimg = cimg;
	}
	public Date getCdate() {
		return cdate;
	}
	public void setCdate(Date cdate) {
		this.cdate = cdate;
	}
	public String getCreview() {
		return creview;
	}
	public void setCreview(String creview) {
		this.creview = creview;
	}
	public Integer getCwant() {
		return cwant;
	}
	public void setCwant(Integer cwant) {
		this.cwant = cwant;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((cauthor == null) ? 0 : cauthor.hashCode());
		result = prime * result + ((cdate == null) ? 0 : cdate.hashCode());
		result = prime * result + ((cid == null) ? 0 : cid.hashCode());
		result = prime * result + ((cimg == null) ? 0 : cimg.hashCode());
		result = prime * result + ((cintroduction == null) ? 0 : cintroduction.hashCode());
		result = prime * result + ((cname == null) ? 0 : cname.hashCode());
		result = prime * result + ((creview == null) ? 0 : creview.hashCode());
		result = prime * result + ((cwant == null) ? 0 : cwant.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Cartoon other = (Cartoon) obj;
		if (cauthor == null) {
			if (other.cauthor != null)
				return false;
		} else if (!cauthor.equals(other.cauthor))
			return false;
		if (cdate == null) {
			if (other.cdate != null)
				return false;
		} else if (!cdate.equals(other.cdate))
			return false;
		if (cid == null) {
			if (other.cid != null)
				return false;
		} else if (!cid.equals(other.cid))
			return false;
		if (cimg == null) {
			if (other.cimg != null)
				return false;
		} else if (!cimg.equals(other.cimg))
			return false;
		if (cintroduction == null) {
			if (other.cintroduction != null)
				return false;
		} else if (!cintroduction.equals(other.cintroduction))
			return false;
		if (cname == null) {
			if (other.cname != null)
				return false;
		} else if (!cname.equals(other.cname))
			return false;
		if (creview == null) {
			if (other.creview != null)
				return false;
		} else if (!creview.equals(other.creview))
			return false;
		if (cwant == null) {
			if (other.cwant != null)
				return false;
		} else if (!cwant.equals(other.cwant))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Cartoon [cid=" + cid + ", cname=" + cname + ", cauthor=" + cauthor + ", cintroduction=" + cintroduction
				+ ", cimg=" + cimg + ", cdate=" + cdate + ", creview=" + creview + ", cwant=" + cwant + "]";
	}
	public Cartoon(Integer cid, String cname, String cauthor, String cintroduction, String cimg, Date cdate,
			String creview, Integer cwant) {
		super();
		this.cid = cid;
		this.cname = cname;
		this.cauthor = cauthor;
		this.cintroduction = cintroduction;
		this.cimg = cimg;
		this.cdate = cdate;
		this.creview = creview;
		this.cwant = cwant;
	}
	public Cartoon() {
		super();
		// TODO Auto-generated constructor stub
	}
	

	
	
}
